from sys import argv
#以命令行的方式输入文件1的文件名
script,filename = argv
#打开文件1
txt = open(filename)

print(f"Here's your file {filename}:")
#输出文件1的内容
print(txt.read())

txt.close()

print("Type the filename again:")
# 输入文件2的文件名
file_again = input("> ")

# 打开文件2
txt_again = open(file_again)

# 输出文件2的内容
print(txt_again.read())
txt_again.close()